package com.yoda.mall.admin.service;

import com.yoda.mall.api.OrderSettingApi;
import com.yoda.mall.model.entity.oms.OrderSetting;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * @author shawn
 * @date 2022年 12月 19日 9:26
 */
@Service
public class OrderSettingService {

    @DubboReference
    private OrderSettingApi orderSettingApi;

    public OrderSetting getOrderSetting(Long id) {
        return orderSettingApi.getOrderSetting(id);
    }

    public Integer updateOrderSetting(OrderSetting orderSetting) {
      return   orderSettingApi.updateOrderSetting(orderSetting);
    }
}
